<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
{eval $user=$this->user; $setting=$this->setting;}
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Tipask's Control Panel</title>
<meta http-equiv="Content-Type" content="text/html; charset={APP_CHARSET}">
<link media="all" type="text/css" href="css/admin/admincp.css" rel="stylesheet" />
<script src="js/jquery.js" type="text/javascript"></script>
<script src="js/admin.js" type="text/javascript"></script>
<script src="js/calendar.js" type="text/javascript"></script>
</head>

<body>

<div id="append">
</div>
 
<div class="container">
	<!--{if isset($message)}-->
		<!--{eval $type=isset($type)?$type:'correctmsg'; }-->
		<div class="{$type}"><p>{$message}</p></div>
	<!--{/if}-->

	<h4>[共 {$usernum} 个用户]</h4>
	<div class="mainbox">
		<form name="userForm" action="index.php?c=admin_user&a=remove" method="post">
			<table class="datalist fixwidth" >
				<tr>
					<th width="5%"><input class="checkbox" id="chkall" onclick="checkall('uid[]')" type="checkbox" name="chkall"><label for="chkall">全选</label></th>					
					<th width="10%">用户名</th>
					<th width="10%">真实姓名</th>
					<th width="10%">Email</th>
					<th width="10%">手机</th>
					<th width="10%">注册时间</th>
					<th  width="30%">现居住地</th>
					<th>操作</th>
					<th>用户组</th>
				</tr>
				{loop $userlist $member}
				<tr>
					<td width="5%" class="option"><input class="checkbox" type="checkbox" value="{$member['uid']}" name="uid[]"></td>
					<td width="10%" >{$member['username']}</td>
					<td width="10%" >{$member['truename']}</td>
					<td width="10%" >{$member['email']}</td>
					<td width="10%" >{$member['phone']}</td>
					<td width="10%">{$member['format_regtime']}</td>
					<td width="30%">{$member['address']}</td>
					<td><a href="index.php?c=admin_user&a=edit&uid={$member['uid']}">编辑</a></td>
					<td><a href="index.php?c=admin_usergroup&a=change&uid={$member['uid']}">更改</a></td>
				</tr>
				{/loop}
				<tr class="nobg">
					<td colspan="9" class="tdpage"><div class="pages">{$departstr}</div></td>
				</tr>
				<tr class="nobg">
					<td colspan="9"> 
						<input id="httpstr" type="hidden" name="httpstr"  value="{$httpstr}"/>
						<input class="btn"  type="button" name="removebtn" onclick="doremove();" value="删除选中" />&nbsp;&nbsp;&nbsp;&nbsp;
						<input class="btn"  type="button" name="elect" onclick="doexport();" value="导出到Excel" />&nbsp;&nbsp;
					</td>
				</tr>
			</table>
		</form>
	</div>
</div>

</body>
<script type="text/javascript">
function doexport(type){
	document.userForm.action="index.php?c=admin_user&a=export";
	document.userForm.submit();	
}
function doremove(){
	if($("input[name='uid[]']:checked").length == 0){
			alert('你没有选择任何用户');
			return false;
	}
	if(confirm('确认删除该用户?此操作不可恢复!')==false){
		return false;
	}
	document.userForm.action="index.php?c=admin_user&a=remove";
	document.userForm.submit();
	//window.location="index.php?c=admin_user&a=search&"+$('#httpstr').val();
}
 
 
</script>
</html>
